﻿using Web.Client.Utils;
using SaaS.Core;
using XCore.Dependency;
using XCore.Domain;

namespace Web.Client.Services
{
    public abstract class ClientApplicationServiceBase : ApplicationServiceBase
    {
        /// <summary>
        /// 日志采集
        /// </summary>
        protected ClientLogger Logger { get; }
        /// <summary>
        /// EF 上下文
        /// </summary>
        protected ClientDbContext SCC { get; }
        public ClientApplicationServiceBase() : base(CoreSetting.DefaultConnectionString)
        {
            Logger = IocCollection.Resolve<ClientLogger>();
            SCC = IocCollection.Resolve<ClientDbContext>();
        }
    }
}
